﻿<%@ Page Language="C#" MasterPageFile="~/Administrator/Admin.master" AutoEventWireup="true"
    Inherits="Administrator_AdminNewsIU" Title="Quản trị tin tức" CodeBehind="AdminNewsIU.aspx.cs" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h1>
        <asp:Label ID="lbAdminNews" runat="server" Text="CẬP NHẬT THÔNG TIN TIN TỨC"></asp:Label>
    </h1>
    <div class="accountInfo">
        <table cellspacing="0" cellpadding="0" class="data-table">
            <tbody>
                <tr>
                    <td colspan="2">
                        <span class="failureNotification">
                          <asp:Label ID="lbMessage" runat="server"></asp:Label>
                            
                        </span>
                         <span style="color:Blue; font-size:14px">
                           
                            <asp:Literal ID="ltrMessageSuccess" runat="server"></asp:Literal>
                        </span>
                        <asp:ValidationSummary ID="NewsValidationSummary" runat="server" CssClass="failureNotification"
                            ValidationGroup="NewsGroup" />
                    </td>
                </tr>
               
                <tr>
                    <td align="right">
                        <asp:Label ID="lbDanhMucTinTuc" runat="server">Danh Mục Tin Tức:</asp:Label>
                    </td>
                    <th>
                        <asp:DropDownList ID="ddlDanhMucTinTuc" runat="server">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="rvDanhMucTinTuc" runat="server" ControlToValidate="ddlDanhMucTinTuc"
                            ValidationGroup="NewsGroup" CssClass="failureNotification" ErrorMessage="Hãy chọn chuyên mục."
                            InitialValue="-1" ToolTip="Hãy chọn chuyên mục." Text="*" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbTieuDeVN" runat="server">Tiêu đề (VN)</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtTieuDeVN" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rvTieuDeVN" runat="server" ErrorMessage="Tiêu để VN không được để trống."
                            ControlToValidate="txtTieuDeVN" Text="*" CssClass="failureNotification" ToolTip="Tiêu để VN không được để trống."
                            ValidationGroup="NewsGroup" />
                    </th>
                </tr>
                <tr >
                    <td align="right">
                        <asp:Label ID="lbTieuDeOther" runat="server">Tiêu Đề (Other)</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtTieuDeOther" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rvTieuDeOther" runat="server" ValidationGroup="NewsGroup"
                            ControlToValidate="txtTieuDeOther" CssClass="failureNotification" ErrorMessage="Tiêu để Other không được để trống."
                            ToolTip="Tiêu để Other không được để trống." Text="*" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        &nbsp;
                    </td>
                    <th>
                        <asp:Image ID="imgIcon" runat="server" BorderWidth="0" Height="50px" Width="50px" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="Label1" runat="server">Icon:</asp:Label>
                    </td>
                    <th>
                        <asp:FileUpload ID="fuIcon" runat="server" CssClass="textEntry" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbTomTatVN" runat="server">Nội Dung Tóm Tắt (VN):</asp:Label>
                    </td>
                    <th>
                        <FCKeditorV2:FCKeditor ID="fckTomTatVN" runat="server" BasePath="../fck/fckeditor/"
                            Width="99%" Height="400px" />
                    </th>
                </tr>
                <tr >
                    <td align="right">
                        <asp:Label ID="lbTomTatOther" runat="server">Nôi Dung Tóm Tắt (Other):</asp:Label>
                    </td>
                    <th>
                        <FCKeditorV2:FCKeditor ID="fckTomTatOther" runat="server" BasePath="../fck/fckeditor/"
                            Width="99%" Height="400px" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbNoiDungVN" runat="server">Nội Dung (VN):</asp:Label>
                    </td>
                    <th>
                        <FCKeditorV2:FCKeditor ID="fckNoiDungVN" runat="server" BasePath="../fck/fckeditor/"
                            Width="99%" Height="400px" />
                    </th>
                </tr>
                <tr >
                    <td align="right">
                        <asp:Label ID="lbNoiDungOther" runat="server">Nôi Dung (Other):</asp:Label>
                    </td>
                    <th>
                        <FCKeditorV2:FCKeditor ID="fckNoiDungOther" runat="server" BasePath="../fck/fckeditor/"
                            Width="99%" Height="400px" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbHinhAnhUrl" runat="server">Hình Ảnh:</asp:Label>
                    </td>
                    <th>
                        <asp:FileUpload ID="fuHinhAnhUrl" runat="server" CssClass="textEntry" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        &nbsp;
                    </td>
                    <th>
                        <asp:Image ID="imgHinhAnh" runat="server" BorderWidth="0" Height="150px" Width="150px" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbSapXep" runat="server">Sắp Xếp:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtSapXep" runat="server" CssClass="textEntry">1</asp:TextBox>
                    </th>
                </tr>
                <tr>
                    <td align="right">
                    </td>
                    <th>
                         <asp:CheckBox ID="ckPublish" runat="server" Checked="true" Text="Hiển thị" />
                    </th>
                </tr>
                <tr>
                    <td>
                    </td>
                    <th>
                        <asp:CheckBox ID="chkNoiBat" runat="server" Text="Tin Nổi bật?" />
                        <asp:CheckBox ID="chkHot" runat="server" Text="Tin Hot" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                    </td>
                    <th>
                        <asp:Button ID="btnSave" runat="server" Text="Lưu" ValidationGroup="NewsGroup" OnClick="btnSave_Click" CssClass="btn_action" />
                        <asp:Button ID="btnapply" runat="server" Text="Áp dụng" 
                            onclick="btnapply_Click" CssClass="btn_action" />
                        <asp:Button ID="btnBack" runat="server" Text="Quay lại danh sách" OnClick="btnBack_Click" CssClass="btn_action" />
                    </th>
                </tr>
            </tbody>
        </table>
    </div>
</asp:Content>
